﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<hercules.Models.PessoaModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Editar Funcionário
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Editar Funcionário</h2>

<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>

<% using (Html.BeginForm()) { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset style="width: 700px;">
        <legend>Fornecedor</legend>

        <table>
            <tr>
                <td>
                    <%: Html.LabelFor(model => model.Nome) %> <br/>
                    <%: Html.EditorFor(model => model.Nome) %> <br/>
                    <%: Html.ValidationMessageFor(model => model.Nome) %>
                </td>
            </tr>
            <tr>
                <td>
                    <%: Html.LabelFor(model => model.Rg) %> <br />
                    <%: Html.EditorFor(model => model.Rg) %> <br/>
                    <%: Html.ValidationMessageFor(model => model.Rg) %>
                </td>
                <td>
                    <%: Html.LabelFor(model => model.Insc_estadual) %> <br/>
                    <%: Html.EditorFor(model => model.Insc_estadual) %> <br/>
                    <%: Html.ValidationMessageFor(model => model.Insc_estadual) %>
                </td>
            </tr>
            <tr>
                <td>
                    <%: Html.LabelFor(model => model.Cpf) %> <br/>
                    <%: Html.EditorFor(model => model.Cpf) %> <br/>
                    <%: Html.ValidationMessageFor(model => model.Cpf) %>
                </td>
                <td>
                    <%: Html.LabelFor(model => model.Cnpj) %> <br/>
                    <%: Html.EditorFor(model => model.Cnpj) %> <br/>
                    <%: Html.ValidationMessageFor(model => model.Cnpj) %>
                </td>
            </tr>
            <tr>
                <td>
                    <%: Html.LabelFor(model => model.Endereco) %> <br/>
                    <%: Html.EditorFor(model => model.Endereco) %> <br/>
                    <%: Html.ValidationMessageFor(model => model.Endereco) %>
                </td>
            </tr>
            <tr>
                <td>
                    <%: Html.LabelFor(model => model.Estado) %> <br/>
                    <%: Html.EditorFor(model => model.Estado) %> <br/>
                    <%: Html.ValidationMessageFor(model => model.Estado) %>
                </td>
                <td>
                    <%: Html.LabelFor(model => model.Cep) %> <br/>
                    <%: Html.EditorFor(model => model.Cep) %> <br/>
                    <%: Html.ValidationMessageFor(model => model.Cep) %>
                </td>
            </tr>
            <tr>
                <td>
                    <%: Html.LabelFor(model => model.Bairro) %> <br/>
                    <%: Html.EditorFor(model => model.Bairro) %> <br/>
                    <%: Html.ValidationMessageFor(model => model.Bairro) %>
                </td>
                <td>
                    <%: Html.LabelFor(model => model.Cidade) %> <br/>
                    <%: Html.EditorFor(model => model.Cidade) %> <br/>
                    <%: Html.ValidationMessageFor(model => model.Cidade) %>
                </td>
            </tr>
            <tr>
                <td>
                    <%: Html.LabelFor(model => model.Email) %> <br/>
                    <%: Html.EditorFor(model => model.Email) %> <br/>
                    <%: Html.ValidationMessageFor(model => model.Email) %>
                </td>
            </tr>
            <tr>
                <td>
                    <%: Html.LabelFor(model => model.Conta) %> <br/>
                    <%: Html.EditorFor(model => model.Conta) %> <br/>
                    <%: Html.ValidationMessageFor(model => model.Conta) %>
                </td>
                <td>
                    <%: Html.LabelFor(model => model.Agencia) %> <br/>
                    <%: Html.EditorFor(model => model.Agencia) %> <br/>
                    <%: Html.ValidationMessageFor(model => model.Agencia) %>
                </td>
                <td>
                    <%: Html.LabelFor(model => model.Banco) %> <br/>
                    <%: Html.EditorFor(model => model.Banco) %> <br/>
                    <%: Html.ValidationMessageFor(model => model.Banco) %>
                </td>
            </tr>
        </table>

        <p>
            <input type="submit" value="Salvar" />
        </p>
    </fieldset>
<% } %>

<div>
    <%: Html.ActionLink("Voltar", "Index") %>
</div>
</center>
</asp:Content>
